# install vim and git
yum install -y vim git

# make dl and gp folders at root
mkdir ~/dl
mkdir ~/gp

# clone git shell tools to dl
cd ~/gp
git clone https://git.oschina.net/tingyang/ShellTools.git
chmod -R 777 *

# exec some command
cd ShellTools/CentOS
./history_tool.sh
./export_path.sh
./vpn/vpn*

# restart and all setting take effect
shutdown -r 0


# install final speed
wget http://fs.d1sm.net/finalspeed/install_fs.sh
chmod -R 777 install_fs.sh
./install_fs.sh


# install crontab
yum install cronie
crontab -e
30 * * * * sh /fs/restart.sh
echo sh /fs/restart.sh >> /etc/rc.local
chkconfig crond on
service crond restart


# edit hostname
vim /etc/hosts
vim /etc/sysconfig/network